import request from '@/utils/httpRequest'

export function fetchShopSerTypeList() {
  return request({
    url: request.adornUrl('/shop/shopservicestype/list'),
    method: 'get'
  })
}

export function addShopSerTypeObj(obj) {
  return request({
    url: request.adornUrl('/shop/shopservicestype'),
    method: 'post',
    data: obj
  })
}

export function getShopSerTypeObj(id) {
  return request({
    url: request.adornUrl('/shop/shopservicestype/' + id),
    method: 'get'
  })
}

export function delShopSerTypeObj(id) {
  return request({
    url: request.adornUrl('/shop/shopservicestype/' + id),
    method: 'delete'
  })
}

export function putShopSerTypeObj(obj) {
  return request({
    url: request.adornUrl('/shop/shopservicestype'),
    method: 'put',
    data: obj
  })
}

export function getShopSerTypeObjByShopId(shopId) {
  return request({
    url: request.adornUrl('/shop/shopservicestype/getShopSerTypeObjByShopId/' + shopId),
    method: 'get'
  })
}

export function saveShopSerTypes(data) {
  return request({
    url: request.adornUrl('/shop/shopservicestype/saveShopSerTypes'),
    method: 'post',
    data: data
  })
}

export function getMerTypeByShopId(data) {
  return request({
    url: request.adornUrl('/shop/shopservicestype/getMerTypeByShopId'),
    method: 'post',
    data: data
  })
}
